package com.lizheng.yunservice.culturalld.controller;

import com.lizheng.yunservice.common.domain.ApiRestResponse;

import com.lizheng.yunservice.culturalld.model.VO.VtpCulturalDetaiwenhuaxiangqilVO;
import com.lizheng.yunservice.culturalld.service.VtpCulturalwenhuaxiangqiService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/vtp/app/cultural")
public class VtpCulturalwenhuaxaingqiController {

    private final VtpCulturalwenhuaxiangqiService culturalService;

    public VtpCulturalwenhuaxaingqiController(VtpCulturalwenhuaxiangqiService culturalService) {
        this.culturalService = culturalService;
    }

    @GetMapping("/detail/{culturalId}")
    public ApiRestResponse<VtpCulturalDetaiwenhuaxiangqilVO> getCulturalDetail(
            @PathVariable Long culturalId) {
        VtpCulturalDetaiwenhuaxiangqilVO detail = culturalService.getCulturalDetail(culturalId);
        return ApiRestResponse.ok(detail);
    }
}